from django.db import models

class BaseModel(models.Model):
    sort=models.IntegerField(default=0, verbose_name='排序')
    isdel=models.BooleanField(default=False, verbose_name='是否删除')
    addtime=models.DateTimeField(auto_now_add=True, verbose_name='添加时间')
    class Meta:
        abstract = True#设置抽象模型类 不会被创建表  只是被继承
        ordering = ['sort']